<include file="../Public/agent.header.html" />
<link href="__PUBLIC__/Css/user.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/Js/user/common.js" charset="UTF-8"></script>

<div id="mainWrapper">
<div id="main">

	<include file="../agent/Tpl/default/Public/user_left_nav_box.html" />
  
  	<div id="right_box">
	    <div class="right_top">        	
	       	<span class="welcome"></span>
	    </div>
	    <div class="right_line dashed_line">
	    	<!-- div style="float:right;margin:5px 0px;">
			<iframe width="400px" height="150px" class="share_self"  frameborder="0" scrolling="no" 
				src="http://widget.weibo.com/weiboshow/index.php?width=0&height=150&fansRow=1&ptype=1&speed=0&skin=7&isTitle=1&noborder=1&isWeibo=1&isFans=1&uid=1937126950&verifier=5382a6e2"></iframe>
	
	        </div -->
	        <ul class="class_info_ul" style="">
	        	<li>您的账户余额：<span>{:formatMoney($uaccount['current_money'])}</span></li>
				<!--  
	            <li>您的账户余额：<span>{:formatMoney($uaccount['current_money'])}</span></li>
	            
	            <li>您的可用积分：<span><php> echo empty($uaccount['current_credit'])?'0':$uaccount['current_credit'];</php>&nbsp;积分</span></li>
	    		-->
	    		<li>未用的{:K('SP_COUPON_NM')}：<span><php> echo empty($notUsedCouponNo)?'0':$notUsedCouponNo;</php>&nbsp;个</span></li>
	    		
	        </ul>

	        <div class="clear"></div>
	    </div>
	    
	  	<!-- 提示绑定手机，可及时查看收到的礼物 
	  	<div class="k_desc_div" style="margin:0 0 15px 0px;">
			<div class="k_icon k_bulb"></div>
			<strong>外部账号绑定</strong>&nbsp;&nbsp;&nbsp;<a href="{:U('User://Account/security')}#othersys">点击绑定</a>
			<div>
				<php>
				//$loginbinds = model('User')->syncStatus($_SESSION['mid']);
				//dump($loginbinds);
				if( empty($loginbinds) ){</php>
					未绑定任何第三方账号！
				<php>}</php>
				<php>if($loginbinds['sina']!=null){</php>
					<img src="/Public/Images/global/sina24x24.png" align="absmiddle" title="已绑定新浪微博">
					&nbsp;&nbsp;
				<php>}</php>
				<php>if($loginbinds['douban']!=null){</php>
					<img src="/Public/Images/global/douban24x24.png" align="absmiddle" title="已绑定豆瓣">
					&nbsp;&nbsp;
				<php>}</php>
			</div>
		</div>	
		 -->
		 <php>if( empty($loginbinds) ){</php>
	  	<div class="k_desc_div" style="margin:0 0 15px 0px;">
			<div class="k_icon k_bulb"></div>
			<strong>外部账号绑定</strong>&nbsp;&nbsp;&nbsp;<a href="{:U('User://Account/security')}#othersys">点击绑定</a>
			<div>
				未绑定外部账号！绑定后，可以用外部账号直接登录！
			</div>
		</div>	
	  	<php>}</php>
	  	
	  	<php>if( empty($user['mobile']) ){</php>
	  		<!-- 提示绑定手机，可及时查看收到的礼物 -->
	  		<div class="k_desc_div" style="margin:0 0 15px 0px;">
				<div class="k_icon k_bulb"></div>
				<strong>您还没有绑定手机号码</strong>&nbsp;&nbsp;&nbsp;<a href="{:U('User://Account/security')}">点击绑定</a>
				<div>
					绑定手机号码才可查看收到的礼物！
				</div>
			</div>	
	  	<php>}</php>
	  	<php>if( !empty($upayOrderNo) ){</php>
	  	<div class="k_desc_div" style="margin:0 0 15px 0px;">
				<div class="k_icon k_bulb"></div>
				<strong>您还未付款的商品</strong>&nbsp;&nbsp;{$upayOrderNo}个&nbsp;&nbsp;<a href="{:U('User://Index/sendList',array('stype'=>'unpay'))}">点击查看</a>
				<div>
				</div>
		</div>
		<php>}</php>
		
		<div class="k_desc_div" style="margin:0 0 15px 0px;">
				<div class="k_icon k_gift"></div>
				<a class="fr more" href="{:U('User://Index/receiveList')}" title="查看全部收到的礼物！">共 {$newCoupons['count']} 个礼物</a>
				<strong>您近期收到的礼物</strong>
				<div style="margin-left: 22px;">
					<php>
					foreach($newCoupons['data'] as $vo1){
						if(!in_array($vo1['order_id'],$ary_orderid))$ary_orderid[]=$vo1['order_id'];
					}
					if(!empty($ary_orderid))$ordersInfo = service('Order')->selectORelInfoByIds($ary_orderid);
					</php>
					<volist id="vo" name="newCoupons['data']">
			            <a href="{:U('User://Index/receiveList',array('coupon_id'=>$vo['id']))}"  class="coupon_s"
			            	title="{$ordersInfo[$vo['order_id']]['goods_title']}--{:getCouponStatus($vo)}" style="margin:10px 8px 5px 8px">
				            	<em>{:getCouponStatus($vo)}</em>
				            	<span></span>
				            	<img src="{:getPhotoFromThumb($ordersInfo[$vo['order_id']]['goods_icon'],100,100)}">	
			            </a>
					</volist>
				</div>
				<div class="clear"></div>
		</div>

	  	<div class="k_desc_div" style="margin:0 0 15px 0px;">
				<div class="k_icon k_man"></div>
				<strong>近期送您礼物的朋友</strong>
				<div id="user_avator_list" style="margin-left: 22px;">
					<volist id="vo" name="senderIds">
						<img width="50px" height="50px" style="padding:1px;margin: 10px 0 10px 11px;border: 1px solid rgb(128, 152, 168); " 
			            		src="{$vo['user_id']|getUserFace='m'}" uid="{$vo['user_id']}" curl="{:U('User://Index/usercard')}">
					</volist>
				</div>
		</div>
		
<script>

$(document).ready(function(){
    $("#user_avator_list > img").hover(
        function(){
        	ui.card(this);
        },
        function(){
        	//$('#q_ui_card').fadeOut("fast");
        }
    );
});

</script>
	  	<!-- div class="k_desc_div" style="margin:0 0 15px 0px;">
				<div class="k_icon k_bulb"></div>
				<strong>用户重要日期提示</strong>
				<div>
					显示临近的可以送礼日期，如朋友生日、有意义的日子、节假日等。
				</div>
		</div -->	
			
	</div>
</div>
</div>
<include file="../Public/footer.html" />